using UnityEngine;
using System.Collections;

public class ItemStatBoost : MonoBehaviour {
	public float speed 		= 0;
	public float aim 		= 0; //Will multiply to the current aimspread. Use below 1 values to reduce spread.
	public int hp 			= 0;
	public int maxhp 		= 0;
	public int damage 		= 0;
	public int weight 		= 0;
	public bool feather 	= false;
	public bool scope 		= false;
	public bool spud 		= false;
	public bool instantUse 	= false;
	public bool eye			= false;
	
	public bool debug		= false;
	
	// Use this for initialization
	void Start () {

	}
	
	// Update is called once per frame
	void Update () {
		
	}
	
	public void ApplyBoost(RigidbodyFPSController player){
		if (aim != 0)	player.AddAim(aim);
		if (speed != 0)	player.AddSpeed(speed);
		if (weight != 0)player.AddWeight(weight);
		if (feather)	player.AddFeather(1);
		if (scope)		player.AddScope(1);
		if (maxhp != 0)	player.AddMaxHP(maxhp);
		if (hp != 0)	player.AddHP(hp);
		if (spud)		player.AddSpud(1);
		if (eye)		player.AddEye(1);
		if (debug)		Debug.Log ("Successfully reached ApplyBoost!");
	}
}
